function main(params) {
    const self = this;
    const pageRootList = self.$$roots();

    // 节点参数
    console.log(params);

    api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('0d992734-2b8a-4d32-b088-f1d2cf2923df','" + params.UNIT_ID + "',['UNIT_ID'])").then((res) => {
        // then() 为调用成功的回调

        // 获取所有子区划
        let unitIdList = res.result

        let rootPageElement = pageRootList[0];
        // 找到页面中的列表组件元素
        let pageTableList = rootPageElement.$$element("page_widget_list_460xwy");
        if (pageTableList) {
            if (pageTableList.dataEngine && pageTableList.dataEngine.state) {
                // 如果要给列表的查询组件传参赋值，需要找到组件的model进行赋值，见如下示例
                let queryElement = pageTableList.dataEngine.state.getElement("query_field_wrapper_dq68tv");
                if (queryElement && queryElement.data && queryElement.data.members) {
                    const queryProjectIdModel = queryElement.data.members[0];
                    queryProjectIdModel.props.defaultValue.value = unitIdList;
                }
                let tableCondition = pageTableList.dataEngine.state.getElement("condition_u4gu1");
                if (tableCondition) {
                    tableCondition.onQuery();
                }

            }
        }
    }).catch(err => {
        self.$message.error(err.message); // 显示错误提示信息
    });
}




